package com.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("hello")
public class HelloWordController {
           
	@RequestMapping(value="/a",method=RequestMethod.GET,params=("uid"))
	   public String hello() {
		 
		    System.out.println("hello world!!!");
		   
		return "success";   
	   }
	
	@RequestMapping("/b")
	   public String hello2() {
		 
		    System.out.println("hello world2!!!");
		   
		return "success";   
	   }
}
